import axiosInstance from "../axiosInstance";
const shopCartInfo = {
    add(fid, count) {
        return axiosInstance.post("/shopCart/add", { fid, count })
    },
    findAllByUid() {
        return axiosInstance.get("/shopCart/findAllByUid")
    },
    findByUid(pageIndex) {
        return axiosInstance.get("/shopCart/findByUid/" + pageIndex)
    },
    edit(id, count) {
        return axiosInstance.post("/shopCart/edit/" + id, { count })
    },
    delete(id) {
        return axiosInstance.get("/shopCart/delete/" + id)
    },
    setDefault(ids) {
        return axiosInstance.post("/shopCart/setDefault", ids)
    }
}

export default shopCartInfo;